package com.star.system.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 保存字典
 *
 * @author yangzj
 */
@Accessors(chain = true)
@Data
public class DictSaveDTO {

    /**
     * 字典类型编码
     */
    @Size(max = 50)
    @NotBlank
    private String typeCode;

    /**
     * 字典类型名称
     */
    @Size(max = 50)
    @NotBlank
    private String typeName;

    /**
     * 字典编码
     */
    @Size(max = 50)
    @NotBlank
    private String code;

    /**
     * 字典标签
     */
    @Size(max = 50)
    @NotBlank
    private String name;

    /**
     * 拓展字段
     */
    @Size(max = 50)
    private String expand;

    /**
     * 排序
     */
    @NotNull
    private Integer sort;

}
